home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-27 | 3.0 KB | 121 lines | [TEXT/KAHL] |
- // -----------------------------------------------------------------------------
- // File : demoBoxes.r
- // Date : June 18, 1995
- // Author : Jim Stout
- // Purpose : show the various types of Group boxes available with CDEF 1101
- // :
- // -----------------------------------------------------------------------------
- #define REZ // Think 6 - see jimsCDEF.h
- #define SystemSevenOrLater 1
- #include <Types.r>
- #include "jimscdef.h"
-
- resource 'dctb' (240, purgeable) {
- {
- /* [1] */ wContentColor, 52428, 52428, 52428, // gray background
- /* [2] */ wFrameColor, 0, 0, 0,
- /* [3] */ wTextColor, 0, 0, 0,
- /* [4] */ wHiliteColor, 0, 0, 0,
- /* [5] */ wTitleBarColor, 65535, 65535, 65535
- }
- };
-
- resource 'DLOG' (240, "Demo group boxes", purgeable) {
- {46, 15, 340, 493}, movableDBoxProc, visible, nogoAway,
- 0x0, 240,
- "Group Box Variations"
- #if SystemSevenOrLater
- , centerMainScreen
- #endif
- };
-
- resource 'DITL' (240, "Demo group boxes", purgeable) {
- {
- /* [1] */ {261, 406, 281, 465}, Button { enabled, "OK" },
- /* [2] */ {261, 334, 281, 393}, Button { enabled, "Disable" },
-
- /* [1] */ {10, 10, 85, 150}, Control { enabled, 240 },
- /* [1] */ {10, 170, 26, 310}, Control { enabled, 241 },
- /* [1] */ {10, 330, 26, 470}, Control { enabled, 242 },
- /* [1] */ {100, 10, 116, 150}, Control { enabled, 243 },
- /* [1] */ {100, 170, 116, 310}, Control { enabled, 244 },
- /* [1] */ {100, 330, 116, 470}, Control { enabled, 245 },
- /* [1] */ {190, 10, 206, 150}, Control { enabled, 246 },
- /* [1] */ {190, 170, 206, 310}, Control { enabled, 247 },
-
- /* [1] */ {30, 20, 46, 140}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {30, 180, 46, 300}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {30, 340, 46, 460}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {120, 20, 136, 140}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {120, 180, 136, 300}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {120, 340, 136, 460}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {210, 20, 226, 140}, CheckBox { enabled, "CheckBox" },
- /* [1] */ {210, 180, 226, 300}, CheckBox { enabled, "CheckBox" },
-
- }
- };
-
- resource 'CNTL' (240, purgeable) {
- {10, 10, 26, 150}, 0,
- visible, 75, 0,
- 16*groupBox+8,
- 0,
- "Normal"
- };
-
- resource 'CNTL' (241, purgeable) {
- {10, 170, 26, 310}, 0,
- visible, 75, 0,
- 16*groupBox+1,
- 0,
- "Normal+1"
- };
-
- resource 'CNTL' (242, purgeable) {
- {10, 330, 26, 470}, 0,
- visible, 75, 0,
- 16*groupBox+2,
- 0,
- "Normal+2"
- };
-
- resource 'CNTL' (243, purgeable) {
- {100, 10, 116, 150}, 0,
- visible, 75, 0,
- 16*groupBox+3,
- 0,
- "Normal+1+2"
- };
-
- resource 'CNTL' (244, purgeable) {
- {100, 170, 116, 310}, 0,
- visible, 75, 0,
- 16*groupBox+4,
- 0,
- "Normal+4"
- };
-
- resource 'CNTL' (245, purgeable) {
- {100, 330, 116, 470}, 0,
- visible, 75, 0,
- 16*groupBox+1+4,
- 0,
- "Normal+1+4"
- };
-
- resource 'CNTL' (246, purgeable) {
- {190, 10, 206, 150}, 0,
- visible, 75, 0,
- 16*groupBox+2+4,
- 0,
- "Normal+2+4"
- };
-
- resource 'CNTL' (247, purgeable) {
- {190, 170, 206, 310}, 0,
- visible, 75, 0,
- 16*groupBox+1+2+4,
- 0,
- "Normal+1+2+4"
- };
-